package org.systm.menu.params;

import lombok.Getter;
import lombok.Setter;
import org.global.basic.ServiceParams;
import org.systm.menu.entity.Menu;
import org.systm.menu.entity.PageMeta;

import java.io.Serializable;
import java.util.List;

public class MenuServiceParams<ID extends Serializable> implements ServiceParams<ID, Menu> {
    private ID id;

    @Getter
    @Setter
    private Menu menu;

    @Setter
    @Getter
    private PageMeta meta;

    @Override
    public Menu get() {
        return menu;
    }

    @Override
    public void set(Menu menu) {
        this.menu = menu;
    }

    @Override
    public void setAll(List<Menu> t) {

    }

    @Override
    public List<Menu> getAll() {
        return null;
    }

    @Override
    public ID getId() {
        return this.id;
    }

    @Override
    public void setId(ID id) {
        this.id = id;
    }
}
